<?php
namespace Home\Controller;
use Think\Controller;
class JiyanController extends HomeController {
   
    protected $CAPTCHA_ID = "c6a8f518771d8ea164fd92890d5685b7";
    protected $PRIVATE_KEY = "5eff47a446c7f4958cef79f9e16b16c7";

 /*极验验证验证码*/
    public function EchoMyVerify(){
    	  import("Org.Util.geetestlib");
        $GtSdk = new \GeetestLib($this->CAPTCHA_ID,$this->PRIVATE_KEY);
        
        $user_id = "test";
        $status = $GtSdk->pre_process($user_id);
        $_SESSION['gtserver'] = $status;
        $_SESSION['user_id'] = $user_id;
        echo $GtSdk->get_response_str();
    }

  }